import Vue from 'vue'
import App from './App.vue'
import Antd from 'ant-design-vue'
import router from './router'
// Vue插件，用于从Vue上下文中使用本地Storage，会话Storage和内存Storage
import Storage from 'vue-ls'
import 'ant-design-vue/dist/antd.less'; 
import store from './store/';
// vue-ls配置
import config from '@/defaultSettings'
import { ACCESS_TOKEN } from '@/store/mutation-types'
import '@/permission'
import JDictSelectTag from './common/components/dict/index.js'
Vue.config.productionTip = false
Vue.use(router)
Vue.use(Antd)
Vue.use(Storage, config.storageOptions)
Vue.use(JDictSelectTag);
new Vue({
  router,
  store,
  mounted() {
    store.commit('SET_TOKEN',Vue.ls.get(ACCESS_TOKEN))
  },
  render: h => h(App),
}).$mount('#app')
